package com.zhe.zheblogmaster.mapper;

import com.zhe.zheblogmaster.entity.Link;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ZHE
 */
@Repository
public interface LinkMapper {

    /**
     * 获取所有友链
     *
     * @return 获取所有友链
     */
    List<Link> selectLinks();

    /**
     * 获取友链总数
     *
     * @return 返回友链总数
     */
    Integer selectCount();

    int insertLinkSelective(Link link);

    Link selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Link link);

    int deleteByPrimaryKeyBatch(Integer[] ids);
}
